#!/usr/bin/env python
#coding=utf-8

# parameters
FLOAT_THRESHOLD = 1.25 #平均收益比
FLOATCOST = 0.68 #每封信成本
TOP_ATTR = 50   #boolean化时取收益前TOP_ATTR个属性值
MIN_SUP = 5

DATA_DIRCTORY = '../../data/'
PRE_DATA_DIRCTORY = '../../pre_data/'
RESULT_DIRCTORY = '../../result/'

# for Res00_split_1_3.py:训练数据1:2分割
TRAINING_FILE = DATA_DIRCTORY+'training.txt' # in：原始训练集文件
RUN_TRAINING_FILE = DATA_DIRCTORY+'0_run_training.txt' # out：用来作训练的2/3数据
TEST_TRAINING_FILE = DATA_DIRCTORY+'0_test_training.txt' # out：用来作检验的1/3数据

# for Res01.py:numerical数据10等份离散化
FIELD_TYPE_FILE = PRE_DATA_DIRCTORY+'fieldType.txt' # in：用来标注属性类型的索引文件，已去除无价值属性
DISCRET_INDEX_FILE = DATA_DIRCTORY+'1_discret_index.txt'      # out：离散化后的索引文件
DISCRETED_FILE = DATA_DIRCTORY+'1_discret_run_training.txt'       # out：离散化后的训练集数据文件

# for Res02_split.py:根据TARGET_B是否为1,将数据划分成respond和not_respond两部分
FILEPATH_R = DATA_DIRCTORY+'2_r_d_run_training.txt'         # out:Response数据源
FILEPATH_N = DATA_DIRCTORY+'2_n_d_run_training.txt'         # out:Non-response数据源

# for Res03_bit.py:统计最有价值的TOP_ATTR个属性值，并将respond数据boolean化，属性值在TOP_ATTR中的取1,否则取0
LAST_INDEX = DATA_DIRCTORY+'3_last_index.txt'
BITFILE_PATH = DATA_DIRCTORY+'3_r_bitResult.txt'

# for Res04_bit_test.py:根据LAST_INDEX来将原始数据，转换成经过属性列选择并布尔化的数据
BIT_TEST_TRAINING_FILE = DATA_DIRCTORY+'4_bit_test_training.txt'   # 转换后的验证文件

# for Res05_bit_rt.py:根据LAST_INDEX，将训练集数据全部转换成最终可处理形式，保留TARGET_B，TARGET_D字段
BIT_TRAINING_FILE = DATA_DIRCTORY+'5_bit_run_training.txt' # out:转换后的训练集，包含respond和not_respond

# for Res06_bit_validation.py:根据LAST_INDEX来将validation.txt转换成最终可处理形式,类似Res04_bit_test.py
VALIDATION_FILE = DATA_DIRCTORY+'validation.txt'           # in:原始预测集
BIT_VALIDATION_FILE = DATA_DIRCTORY+'6_bit_validation.txt' # out:转换后的预测集

# for statistic.py:统计最终预测准确度和总收益
TEST_RESULT = RESULT_DIRCTORY+'result_t'+str(TOP_ATTR)+'_m'+str(MIN_SUP)+'_f'+str(FLOAT_THRESHOLD)+'.txt'   # in:预测结果
ACTUAL_RESULT = PRE_DATA_DIRCTORY+'test_actual_result.txt' # in:真实收益表

# for validate.py:statistic for validation
VALIDATION_RESULT = RESULT_DIRCTORY+'val_t'+str(TOP_ATTR)+'_m'+str(MIN_SUP)+'_f'+str(FLOAT_THRESHOLD)+'.txt'   # in:预测结果
VALIDATION_ACTUAL_RESULT = PRE_DATA_DIRCTORY+'valtargt.txt'
CTR_FILE = PRE_DATA_DIRCTORY+'control.txt' # control num
